package com.adjaisd.scarecrow.service;

import com.adjaisd.scarecrow.dto.QuotaTrend;
import com.adjaisd.scarecrow.entity.Device;
import com.adjaisd.scarecrow.entity.Panel;
import com.adjaisd.scarecrow.entity.Quota;
import com.adjaisd.scarecrow.vo.Pager;
import com.adjaisd.scarecrow.vo.QuotaDataVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author adjaisd
 * @since 2022-04-23
 */
public interface PanelService extends IService<Panel> {

    Panel getPanel(Long userId, String name, Long deviceId, Long quotaId);

    boolean addPanel(Panel panel);

    boolean delPanel(Long userId, String name, Long deviceId, Long quotaId);

    Pager<Device> getDevicePage(Long userId, Long page, Long pageSize, String number);

    Pager<Quota> getQuotaPage(Long userId, Long page, Long pageSize, String deviceId);

    List<QuotaTrend> getQuotaTrendList(String beg, String end, String quotaId, String deviceId, int type);

    // 查询指标下存在的数据
    List<QuotaDataVO> getQuotaDataList(Long userId, String deviceId, String quotaId, String beg, String end, int type);

}
